﻿@model Gueei.Gallery.Web.ViewModels.AlbumListViewModel
@using Gueei.Gallery.Web.Extensions
@using Gueei.Gallery.Core.DisplayProfiles

@{
    View.Title = "Albums";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Albums</h2>
<ul class="album-list">
	@foreach (var album in Model)
 {
	<li>
		<div class="album-detail-container">
		<a href="@Url.Action("Album", "Browse", new {Id=album.Id})">
		@if(album.CoverImage!=null){
			@Html.Image(album.CoverImage, DefaultProfileName.Thumbsize)
		}
		</a>
		<div class="album-detail">
		<span class='album-name'>@album.Name</span>
		<span class='album-imageCount'>@album.ImageCount</span>
		</div>
		</div>
	</li>
 }
</ul>